package com.itheima.net;

import java.net.InetAddress;
import java.net.UnknownHostException;

public class WangluoBianCheng {
    public static void main(String[] args) throws UnknownHostException {
        InetAddress ia = InetAddress.getByName("10.80.28.232");
        System.out.println(ia.getHostAddress());
        System.out.println(ia.getHostName());
    }
}
